<?php
/**
 * The loop that displays a page.
 *
 * The loop displays the posts and the post content. See
 * http://codex.wordpress.org/The_Loop to understand it and
 * http://codex.wordpress.org/Template_Tags to understand
 * the tags used in it.
 *
 * This can be overridden in child themes with loop-page.php.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.2
 */
?>

<?php // The Query
$the_query = new WP_Query( array('post_type'=>'rpclient','posts_per_page'=>'-1','order' => 'ASC' ) );

// The Loop
while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

	<div class="clients_thumbs left">
		<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
		<?php
		if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
		  the_post_thumbnail();
		} 
		?>
		</a>
	</div>
	
		<?php //echo the_excerpt(); ?>
	
	
<?php 
endwhile; // end of the loop. 
wp_reset_postdata();
?>
